package cn.edu.sdjzu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.sdjzu.CalculatorFallbackFactory;

@FeignClient(name = "calculator-service", fallbackFactory = CalculatorFallbackFactory.class)
public interface CalculatorService {

    @GetMapping("/add")
    Integer add(@RequestParam("a") Integer a, @RequestParam("b") Integer b);
}